<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head>

</h:head>

<h:body>
	<div>
		<h:form>

			<p:panel header="Registration">
				<h:panelGrid columns="2" cellpadding="5">
					<h:outputText value="Titel " />
					<p:selectOneMenu value="#{customer.sTitle}">
						<f:selectItem itemLabel="Bitte wählen" itemValue="" />
						<f:selectItem itemLabel="Herr" itemValue="Herr" />
						<f:selectItem itemLabel="Frau" itemValue="Frau" />
					</p:selectOneMenu>

					<h:outputText value="Vorname " />
					<p:inputMask value="#{customer.sForename}" />

					<h:outputText value="Nachname " />
					<p:inputMask value="#{customer.sLastname}" />

					<h:outputText value="Passwort " />
					<p:password value="#{registerCtrl.sPassword1}" />

					<h:outputText value="Passwort wiederholen " />
					<p:password value="#{registerCtrl.sPassword2}" />
					
					<p:commandButton value="Reset" type="reset" />
					<p:commandButton value="Regisrieren" action="#{registerCtrl.register}" />

				</h:panelGrid>
			</p:panel>

		</h:form>
	</div>
</h:body>
</html>
